<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body {
            height: 80vh;
            display: flex;
            justify-content: space-between;

        }
        .left {
            width: 100px;
            margin-top: 50px;
            border-radius: 50%;
            height: 100px;
            background: tomato;
            animation: infinite translateLeft 10s linear;
        }
        .right {
            width: 100px;
            margin-top: 50px;
            border-radius: 50%;
            height: 100px;
            background: lightskyblue;
            animation: infinite translateRight 10s linear;
        }
        .center {
            width: 100px;
            margin-top: 50px;
            border-radius: 50%;
            height: 100px;
            background: yellowgreen;
            animation: infinite translateCenter 10s linear;
        }
        @keyframes translateLeft  {
            10%{
                transform: translateX(10%) translateY(10%);
            }
            20%{
                transform: translateX(20%) translateY(20%);
            }
            30%{
                transform: translateX(30%) translateY(30%);
            }
            40%{
                transform: translateX(40%) translateY(40%);
            }
            50%{
                transform: translateX(50%) translateY(50%);
            }
            60%{
                transform: translateX(60%) translateY(60%);
            }
            70%{
                transform: translateX(70%) translateY(70%);
            }
            80%{
                transform: translateX(80%) translateY(80%);
            }
            90%{
                transform: translateX(90%) translateY(90%);
            }
            100%{
                transform: translateX(0%) translateY(0%);
            }
        }
        @keyframes translateRight    {
            10%{
                transform: translateX(-10%) translateY(10%);
            }
            20%{
                transform: translateX(-20%) translateY(20%);
            }
            30%{
                transform: translateX(-30%) translateY(30%);
            }
            40%{
                transform: translateX(-40%) translateY(40%);
            }
            50%{
                transform: translateX(-50%) translateY(50%);
            }
            60%{
                transform: translateX(-60%) translateY(60%);
            }
            70%{
                transform: translateX(-70%) translateY(70%);
            }
            80%{
                transform: translateX(-80%) translateY(80%);
            }
            90%{
                transform: translateX(-90%) translateY(90%);
            }
            100%{
                transform: translateX(0%) translateY(0%);
            }
        }
        @keyframes translateCenter {
            10%{
                transform: translateY(10%);
            }
            20%{
                transform: translateY(20%);
            }
            30%{
                transform: translateY(30%);
            }
            40%{
                transform: translateY(40%);
            }
            50%{
                transform: translateY(50%);
            }
            60%{
                transform: translateY(500%);
            }
            70%{
                transform: translateY(70%);
            }
            80%{
                transform: translateY(80%);
            }
            90%{
                transform: translateY(90%);
            }
            90%{
                transform: translateY(90%);
            }
            100%{
                transform: translateY(0%);
            }
        }
    </style>
</head>

<body>
    <div class="left"></div>
    <div class="left"></div>
    <div class="left"></div>
    <div class="left"></div>
    <div class="center"></div>
    <div class="center"></div>
    <div class="center"></div>
    <div class="center"></div>
    <div class="right"></div>
    <div class="right"></div>
    <div class="right"></div>
    <div class="right"></div>
</body>

</html>